﻿/***********************************************************************
 * <copyright file="IAuthRepository.cs" company="BSD JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   Hoang Bich Son 
 * Email:    sonhb@newman.vn
 * Website:
 * Create Date: Sunday, April 13, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using DxMvcApplication.SecurityServiceReference;

namespace DxMvcApplication.Repositories.Core
{

    /// <summary>
    /// Authentication Repository interface.
    /// Note: does not derive from IRepository.
    /// </summary>
    public interface IAuthRepository 
    {

        /// <summary>
        /// Gets the token.
        /// </summary>
        /// <returns></returns>
        string GetToken();

        /// <summary>
        /// Logins the specified username.
        /// </summary>
        /// <param name="username">The username.</param>
        /// <param name="password">The password.</param>
        /// <returns></returns>
        LoginResponse Login(string username, string password);

        /// <summary>
        /// Logouts this instance.
        /// </summary>
        /// <returns></returns>
        bool Logout();
    }
}
